package com.test.client.customTimeLine;

import com.google.gwt.core.client.JavaScriptObject;

class BandInfoImpl {
	// -------------------------------------------------------------------
	// Band
	// -------------------------------------------------------------------

	public native static BandInfo create(BandOptions options) /*-{
		return $wnd.Timeline.createBandInfo(options)
	}-*/;

	public native static BandInfo createHotZone(BandOptions options) /*-{
		return $wnd.Timeline.createHotZoneBandInfo(options)
	}-*/;

	public native static void setSyncWith(BandInfo band, int index) /*-{
		band.syncWith = index;
	}-*/;

	public native static void setHighlight(BandInfo band, boolean value) /*-{
		band.highlight = value;
	}-*/;

	public native static void setDecorators(BandInfo band,
			JavaScriptObject value) /*-{
		band.decorators = value;
	}-*/;

	public native static void setZoomIndex(BandInfo band, int index)/*-{
				band.zoomIndex=index;
			}-*/;

	public native static void setZoomSteps(BandInfo band,
			JavaScriptObject[] stepsArray)/*-{
				band.zoomSteps=stepsArray;
			}-*/;

	// set intervalUnit: Timeline.DateTime.MONTH, for zooming

}